﻿#include "dmpch.h"

#include "DM/ImGui/ImGuiWindowAPI.h"
#include "DM/Renderer/Renderer.h"
#include "DM/Platform/Windows/ImGuiGLFWwindow.h"

namespace DM
{
	Scope<ImGuiWindowAPI> ImGuiWindowAPI::Create()
	{
		switch (Renderer::GetAPI())
		{
			case RendererAPI::API::None:DM_CORE_ASSERT(false, "RendererAPI::None is currently not supported!"); return nullptr;;
			case RendererAPI::API::OpenGL:  return CreateScope<ImGuiGLFWwindow>();
		}
		DM_CORE_ASSERT(false, "unknown renderer api!");
		return nullptr;
	}
}
